import type { BpmnEntity } from '../base';

export interface DecisionDefinitionEntity extends BpmnEntity {
  /**
   * The id of the decision definition.
   */
  id: string;
  /**
   * The key of the decision definition, i.e., the id of the DMN 1.0 XML decision definition.
   */
  key: string;
  /**
   * The category of the decision definition.
   */
  category: string;
  /**
   * The name of the decision definition.
   */
  name: string;
  /**
   * The version of the decision definition that the engine assigned to it.
   */
  version: number;
  /**
   * The file name of the decision definition.
   */
  resource: string;
  /**
   * The deployment id of the decision definition.
   */
  deploymentId: string;
  /**
   * The id of the decision requirements definition this decision definition belongs to.
   */
  decisionRequirementsDefinitionId: string;
  /**
   * The key of the decision requirements definition this decision definition belongs to.
   */
  decisionRequirementsDefinitionKey: string;
  /**
   * The tenant id of the decision definition.
   */
  tenantId: string;
  /**
   * The version tag of the process definition.
   */
  versionTag: string;
  /**
   * History time to live value of the decision definition. Is used within History cleanup.
   */
  historyTimeToLive: number;
}
